<script setup>
import router from '@/router';
import { NavBar } from 'vant';
const props=defineProps(['title','leftText','rightText','onClickRight','onClickLeft'])

</script>
<template>
    <div class="narbars">
        <!--  -->
        <van-nav-bar :title="props.title" :left-text="props.leftText" :right-text="props.rightText" left-arrow @click-left="props.onClickLeft"
            @click-right="props.onClickRight" />
        <!--  -->
    </div>
</template>
<style scoped></style>
